package com.guangzhi.weijianzhi.company.center;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.RadioButton;

import com.guangzhi.weijianzhi.R;
import com.guangzhi.weijianzhi.activity.BaseActivity;
import com.guangzhi.weijianzhi.activity.PayPassWordActivity;

public class MyLoginForGetActivity extends BaseActivity implements OnClickListener {

	private String mType;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		mType = getIntent().getStringExtra("type");
		setContentView(R.layout.tz_login_paw_layout);
		initView();
	}

	private void initView() {
		// TODO Auto-generated method stub
		initTitle();
		
		RadioButton my_remember = (RadioButton) findViewById(R.id.my_remember);
		my_remember.setOnClickListener(this);
		RadioButton my_forget = (RadioButton) findViewById(R.id.my_forget);
		my_forget.setOnClickListener(this);
		goBack.setOnClickListener(this);
		if("pay".equals(mType)){
			titleTextV.setText("支付密码管理");//支付密码
			my_remember.setText("\t\t我记得原支付密码");
			my_forget.setText("\t\t我忘记原支付密码");
		}else{
			titleTextV.setText("登录密码管理");//登录密码
			my_remember.setText("\t\t我记得原登录密码");
			my_forget.setText("\t\t我忘记原登录密码");
		}
		
	}

	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		switch (v.getId()) {
		case R.id.my_remember://修改密码
			Intent intent = new Intent(this, PayPassWordActivity.class);
			startActivity(intent);
			break;
		case R.id.my_forget://忘记密码
			
			break;
		case R.id.title_back:
			onBackPressed();
			break;

		default:
			break;
		}
	}
}
